var dotnerDianliao;
$(function(){
	dotnerDianliao = dianliao();
	$('#testBtu').on('click',function(){
		var number=$('#test').val();
		var n=$('#loginNumber').val();
		if(n !='')number=n;
		dotnerDianliao.init(number);
	});
	$('#testBtu2').on('click',function(){
		var number=$('#regist1').val();
		var nick=$('#regist2').val();
		var s=$('#regist3').val();
		var a='';
		var l=2;
		var st=0;
		var user={
			'number':number,
			'nick':nick,
			'avatar':a,
			'status':st,
			'signature':s,
			'level':l
		};
		dotnerDianliao.regist(user);
	});
});
